package com.example.demo.service.impl;

import com.example.demo.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Service;

/**
 * @author dinghx
 */
@Service
public class HelloServiceImpl implements HelloService {

    @Autowired
    Environment env;

    @Override
    public String getResult() {
        return env.getProperty("appkey");
    }
}
